﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Security.Principal;

using Microsoft.SharePoint.Administration;

namespace SPaDevToolkit.Administration
{
    public interface ISPaWebServiceApplicationDatabase
    {
        void AddRoleMember(string role, string user);
        //SqlCommand GetDatabaseUserCommand(string user);
        void GrantAccess(string user);
        bool HasAccess(string user);
        void EnsureAccess(string user);
        void GrantDBOwnerAccess(SecurityIdentifier processSecurityIdentifier);
        void SetSqlAuthenticationCredentials(string sqlAuthUserName, string sqlAuthPassword);
        void UpdateDatabaseAuth(SPDatabaseParameters parameters);
    }
}
